package com.cloud.admin.influxdb;

import lombok.Data;

@Data
public class MetricEntity {
    private Long gmtCreate;
    private Long gmtModified;
    private String app;
    private String instance;

    private String resource;
    private Long timestamp;
    private Long passQps;
    private Long successQps;
    private Long blockQps;
    private Long exceptionQps;

    private double rt;

    /**
     * 本次聚合的总条数
     */
    private int count;
    private int resourceCode;

    public static final String TIME = "time";
    public static final String GMT_CREATE = "gmtCreate";
    public static final String GMT_MODIFIED = "gmtModified";
    public static final String APP = "app";
    public static final String INSTANCE = "instance";
    public static final String RESOURCE = "resource";
    public static final String TIMESTAMP = "timestamp";
    public static final String PASS_QPS = "passQps";
    public static final String SUCCESS_QPS = "successQps";
    public static final String BLOCK_QPS = "blockQps";
    public static final String EXCEPTION_QPS = "exceptionQps";
    public static final String RT = "rt";
    public static final String COUNT = "count";
    public static final String RESOURCE_CODE = "resourceCode";
}
